package com.yonyou.crm.tpub.attachment.rmimpl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.yonyou.crm.tpub.attachment.entity.AttachmentVO;
import com.yonyou.crm.tpub.attachment.rmitf.IAttachmentRmService;
import com.yonyou.crm.tpub.attachment.service.AttachmentBizServiceImpl;

@Service
public class AttachmentRmServiceImpl implements IAttachmentRmService{

	@Autowired
	private AttachmentBizServiceImpl service;
	
	@Override
	public AttachmentVO save(AttachmentVO vo) {
		return service.save(vo);
	}

	@Override
	public AttachmentVO idGet(Long id) {
		return service.getAttachment(id);
	}

	@Override
	public int batchDelete(String[] fileNames) {
		return service.batchDelete(fileNames);
	}

	@Override
	public List<AttachmentVO> getList(Map<String, Object> param) {
		return service.getList(param);
	}

	@Override
	public boolean isExistName(Integer objType, Long objId, String name) {
		return service.isExistName(objType, objId, name);
	}

	@Override
	public int getCountByObjId(Integer objType, Long objId) {
		return service.getCountByObjId(objType, objId);
	}
}
